﻿using System.ComponentModel.DataAnnotations;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Web.Models.CoreData
{
    /// <summary>
    /// 
    /// </summary>
    [Table("tuser")]
    public class User
    {
        /// <summary>
        /// 消息唯一标识
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [Column("id")]
        public String Id { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [Column("username")]
        public String UserName { get; set; }

        /// <summary>
        /// 许可号
        /// </summary>
        [Column("account")]
        public String Account { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Column("password")]
        public String Password { get; set; }

        /// <summary>
        /// mmsi，逗号分割
        /// </summary>
        [Column("mmsi")]
        public String MMSI { get; set; }

        /// <summary>
        /// 公司id
        /// </summary>
        [Column("company")]
        public String Company { get; set; }

        /// <summary>
        /// 注册码
        /// </summary>
        [Column("register")]
        public String Register { get; set; }

        /// <summary>
        /// 配置项ID
        /// </summary>
        [Column("configs")]
        public String Configs { get; set; }
    }
}
